import axios from 'axios'

function getToken () {
    return localStorage.getItem('token')
}

export function upload(api, formData) {
  const config = {
    headers: { 'Authorization': getToken() }
  }
  return axios.post(api, formData, config)
}
